# -*-coding:utf-8-*-

a = ()  # 空元组
b = (1,)  # 单个对象的元组,
c = 1, 2, 3  # python允许忽略元组的括号
d = tuple('abcd')  # 由一个可迭代对象生成元组,即(a, b, c, d)
e = tuple(['a', 'c', 'c', 'd'])
f = {1: 22, 2: 33}
g = tuple(f.items())
h = b + c  # 合并
i = c * 3  # 重复,即(1, 2, 3, 1, 2, 3, 1, 2, 3)
j = c[1:3]  # 分片
k = e.index('a')
l = e.count('c')